import request from '@/utils/request'


// 用户管理
export default {
	query:(data) => {// 列表
		return request({
		  url: '/system/appinfo/query',
		  method: 'post',
		  params: data
		})
	},
	getAppCode:(data) => {// 添加应用选择的唯一code
		return request({
		  url: '/system/appinfo/getAppCode',
		  method: 'post',
		  params: data
		})
	},
	save:(data) => {// 保存应用
		return request({
		  url: '/system/appinfo/save',
		  method: 'post',
		  upFile:true,
		  data
		})
	},
	del:(data) => {// 应用删除
		return request({
		  url: '/system/appinfo/del',
		  method: 'post',
		  params: data
		})
	},
	saveAppRel:(data) => {// 保存应用菜单
		return request({
		  url: '/system/appinfo/saveAppRel',
		  method: 'post',
		  upFile:true,
		  data
		})
	},
	delAppRel:(data) => {// 应用菜单删除
		return request({
		  url: '/system/appinfo/delAppRel',
		  method: 'post',
		  params: data
		})
	},
	
}
